import {Style} from "./Style";
import {Color} from "three";

export class FillExtrusionStyle implements Style {
    //填充颜色
    public fillExtrusionColor: Color;
    //透明度
    public fillExtrusionOpacity = 1.0;
    //边框色
    public fillExtrusionOutlineColor: Color;
    //边框线宽度
    public fillExtrusionOutlineWidth = 1.0;
    //挤出高度
    public extrusionHeight = 100;

    constructor() {
        this.fillExtrusionColor = new Color('white').convertLinearToGamma();
        this.fillExtrusionOutlineColor = new Color('#f5f5f5').convertLinearToGamma();
    }
}
export interface FillExtrusionStyleConfig {
    //填充颜色
    fillExtrusionColor: string | number;
    //透明度
    fillExtrusionOpacity: number;
    //边框色
    fillExtrusionOutlineColor: string | number;
    //边框线宽度
    fillExtrusionOutlineWidth: number;
}
